package com.pkk.cloud.support.oauth2.client.authurl.api;

import com.pkk.cloud.support.admin.oauth2.api.common.req.ResourceUrlAuth;
import com.pkk.components.rpc.common.code.CommonCode;
import com.pkk.components.rpc.request.CommonRequest;
import com.pkk.components.rpc.response.CommonResponse;
import com.pkk.components.rpc.response.util.ResponseUtil;
import org.springframework.stereotype.Component;

/**
 * @description:验权接口的feign的熔断器
 * @author: peikunkun
 * @create: 2020-03-21 15:26
 **/
@Component
public class AuthToAccessApiHystrix implements AuthToAccessApi {

  /**
   * @Description: 认证授权接口是否有权限
   * @return: com.pkk.components.rpc.response.CommonResponse<java.lang.Boolean>
   * @Author: peikunkun
   * @Date: 2020/3/21 0021 下午 3:29
   */
  @Override
  public CommonResponse<Boolean> userAuthentication(CommonRequest<ResourceUrlAuth> var1) {
    return ResponseUtil.error(CommonCode.FAIL);
  }
}
